Skip to content

🐛 FIX: Use docname instead of source path in warning locations#1114

Merged
chrisjsewell merged 2 commits intoexecutablebooks:masterfrom
Bizordec:hotfix/warnings-location
May 7, 2026
Merged

🐛 FIX: Use docname instead of source path in warning locations#1114
chrisjsewell merged 2 commits intoexecutablebooks:masterfrom
Bizordec:hotfix/warnings-location

Conversation

@Bizordec
Copy link
Copy Markdown
Contributor

Changed warning location generation to use document.settings.env.docname instead of document["source"]. This ensures warning locations display clean file names (e.g., index.md) rather than full paths with potential .rst suffixes (e.g., index.md.rst).

Changed warning location generation to use `document.settings.env.docname`
instead of `document["source"]`. This ensures warning locations display
clean file names (e.g., `index.md`) rather than full paths with potential
`.rst` suffixes (e.g., `index.md.rst`).
Copy link
Copy Markdown
Member

@chrisjsewell chrisjsewell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good thanks!

@chrisjsewell chrisjsewell merged commit 8381296 into executablebooks:master May 7, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants